package com.domain.bean.music;

import io.swagger.models.auth.In;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:歌单信息
 * Author : wangyu
 * Date: 2018-03-02
 * Time: 17:28
 */
@Data
@Entity
@Table(name = "music_song_menu")
public class SongMenu implements Serializable {
    private static final long serialVersionUID = -917677758414724729L;
    @Column(unique = true)
    private String code;//歌单code
    private String name;//歌单名字
    private String userCode;//创建人code
    private String userName;//创建人
    private String creationDate;//创建日期
    private Integer collectNum;//收藏数
    private Integer shareNum;//分享数
    private Integer cmtTotal;//评论数
    private String labels;//标签
    @Column(columnDefinition="TEXT")
    private String introduce;//歌词
    private Long playNum;//播放次数
    private String url;//歌单URL
    private String remark;//备注字段


    @Column(name="times",columnDefinition="tinyint default 0")
    private Integer times = 0;//爬取次数
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Long id;//ID
    @Column(name = "create_by",length = 32)
    private String createBy;//创建人
    @Column(name = "create_date")
    private Date createDate;//创建时间
    @Column(name = "update_by",length = 32)
    private String updateBy;//更新人
    @Column(name = "update_date")
    private Date updateDate;//更新时间
    @Version
    private Long version;//版本号
    @Column(name = "del_flag")
    private Boolean delFlag;//删除标记
}
